package org.starsource.forum.server.dao;

import java.util.Set;

import org.starsource.forum.client.exception.DatabaseException;
import org.starsource.forum.client.exception.ResourceNotFoundException;
import org.starsource.forum.server.domain.Message;
import org.starsource.forum.server.domain.Resource;

public interface ResourceDao {
	public void save(Resource resource) throws DatabaseException;
	public void update(Resource resource) throws DatabaseException;
	public void delete(Resource resource) throws DatabaseException;
	public void delete(Message message) throws DatabaseException;
	
	public Resource getResource(int id) throws ResourceNotFoundException, DatabaseException;
	public Set<Resource> getResourceSet(Message message) throws DatabaseException;
}
